Retrieve all users in the Tenant
Retrieve a list of all users in the tenant, including their assigned licenses and Project roles.
Headers
| Header | Value |
|---|---|
user_id | Login username (email) |
api_key | API key of the user for authentication |
Content-Type | application/json |
Accept | application/json |
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accelqLoginUrl | string | Yes | The AccelQ login URL for API access. |
tenantCode | string | Yes | Tenant code for identifying the organization. |
user_id | string | Yes | Login username (email) |
api_key | string | Yes | API key of the user for authentication |
Responses
200 - Successful retrieval of users list
json
[
{
"userPid": "26",
"firstName": "Test",
"lastName": "User",
"email": "Testuser@accelq.com",
"active": true,
"tenantAdmin": false,
"assignedLicenses": [
{
"subscriptionId": "1724156779826",
"licenseBundleId": 1,
"products": [
"WEB",
"API"
]
}
],
"assignedProjects": [
{
"projectName": "accelq Project",
"roleName": "SME",
"isAdmin": false
}
]
}
]
403 - Forbidden - User does not have permission to view users
json
{
"error": "User does not have authorization to access this feature"
}
500 - Internal Server Error
json
{
"error": "Error retrieving user information"
}
cURL Command Builder
URL Parameters
Headers
Request Sample (cURL)
curl -X GET "${{accelqLoginUrl}}/awb/api/2.0/${{tenantCode}}/administration/users" \
-H "user_id: ${{user_id}}" \
-H "api_key: ${{api_key}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"